package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.ClientQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IClientService {

    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    PageResult query(ClientQueryObject qo);

    void insertBrand(Client record);

    void absorb(Long id);

    void movesource(Long id);

    void admovesource(Long id);
    void tryexploit(Long id);
    /**
     * 查询正式客户信息
     * 返回PageResult,可以分页
     * */
    PageResult queryFormalClient(ClientQueryObject qo);

    Client queryClientIdsStoraId(Long stoId);

    List<Client> allLatentClient(int state);

}
